package org.ru.mse10.cvis.entity.cv.custom.provider;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CollectionTable;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.util.CustomFieldValueProviderType;

/**
 * The Class StaticListCustomFieldValueProvider.
 */
@Entity
@Table(name = "static_list_custom_field_value_provider")
public class StaticListCustomFieldValueProvider extends
		CustomFieldValueProvider {

	/** The provided values. */
	private List<String> providedValues = new ArrayList<String>();

	/**
	 * Gets the provided values.
	 * 
	 * @return the provided values
	 */
	@ElementCollection
	@CollectionTable(name = "static_list_provider_values")
	public List<String> getProvidedValues() {
		return providedValues;
	}

	/**
	 * Sets the provided values.
	 * 
	 * @param providedValues
	 *            the new provided values
	 */
	public void setProvidedValues(List<String> providedValues) {
		this.providedValues = providedValues;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.ru.mse10.cvis.entity.cv.custom.provider.CustomFieldValueProvider#
	 * type()
	 */
	@Override
	public CustomFieldValueProviderType type() {
		return CustomFieldValueProviderType.STATIC_LIST;
	}

}
